import { RequestHandler } from "express"

// 定义中间件装饰器
export function Use(middleware: RequestHandler) {
    return (target: any, key: string) => {
        Reflect.defineMetadata('middleware', middleware, target, key)
    }
}

